package com.sali.asyncollection.service.impl;


import com.sali.asyncollection.model.UserInfoDTO;
import com.sali.asyncollection.model.UserInfoParam;
import com.sali.asyncollection.service.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: zhang hang
 * @date: 2023/3/15 20:51.
 * @version: 1.0
 */
@Service
@Slf4j
public class UserServiceImpl implements IUserService {
    @Override
    public UserInfoDTO queryUserInfo(UserInfoParam userInfoParam) {
        log.info("userService正在执行，接收到的参数为: {}", userInfoParam);
        try {
            Thread.sleep(100);
        } catch (InterruptedException ignored) {
        }
        return new UserInfoDTO(1L, "我userName");
    }
}
